/*
 * @Author: your name
 * @Date: 2021-04-19 22:23:52
 * @LastEditTime: 2021-04-19 23:21:58
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /job-card/src/untils/tool.js
 */
import axios from 'axios'
export function readFile(successData) {
  const url = '/static/constant.txt'
  axios.get(url).then(res => {
    console.log('====================================')
    console.log('res---', res)
    successData(res.data)
    console.log('====================================')
  })
}
export function readFileJue(successData) {
  const url = '/static/jueConstant.txt'
  axios.get(url).then(res => {
    console.log('====================================')
    console.log('res---', res)
    successData(res.data)
    console.log('====================================')
  })
}
